package com.dragon.modules.yuegou.model.product;

import com.dragon.modules.yuegou.entity.product.LimitSalesRecordEntity;
import com.dragon.modules.yuegou.enums.product.LimitSalesRecordStatus;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 限时折扣下单记录表模型类
 * 
 * @author ljf
 * @date 2019-07-29 16:30:44
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class LimitSalesRecord extends LimitSalesRecordEntity {

	/**
	 * 构造一个空限时折扣下单记录表模型对象
	 */
	public LimitSalesRecord(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个限时折扣下单记录表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public LimitSalesRecord(LimitSalesRecordEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个限时折扣下单记录表模型对象
	 * 
	 * @param other 其它对象
	 */
	public LimitSalesRecord(LimitSalesRecord other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public LimitSalesRecord id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getLimitSalesId() {
    	return limitSalesId;
    }

    /**
	 * 设置
	 * 
	 * @param limitSalesId 
	 * @return 当前对象
	 */
    public LimitSalesRecord limitSalesId(String limitSalesId) {
    	this.limitSalesId = limitSalesId;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置
	 * 
	 * @param busdId 
	 * @return 当前对象
	 */
    public LimitSalesRecord busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public LocalDateTime getBuyTime() {
    	return buyTime;
    }

    /**
	 * 设置购买的日期
	 * 
	 * @param buyTime 购买的日期
	 * @return 当前对象
	 */
    public LimitSalesRecord buyTime(LocalDateTime buyTime) {
    	this.buyTime = buyTime;
    	return this;
    }

	@Override
	public LimitSalesRecordStatus getStatus() {
    	return status;
    }

    /**
	 * 设置[枚举]状态：0-待支付-UNPAID、1-未支付-NONPAY、2-已支付-PAID
	 * 
	 * @param status [枚举]状态：0-待支付-UNPAID、1-未支付-NONPAY、2-已支付-PAID
	 * @return 当前对象
	 */
    public LimitSalesRecord status(LimitSalesRecordStatus status) {
    	this.status = status;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置
	 * 
	 * @param memberId 
	 * @return 当前对象
	 */
    public LimitSalesRecord memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public String getOrderNo() {
    	return orderNo;
    }

    /**
	 * 设置
	 * 
	 * @param orderNo 
	 * @return 当前对象
	 */
    public LimitSalesRecord orderNo(String orderNo) {
    	this.orderNo = orderNo;
    	return this;
    }
}
